package ${domain}.module.wsys.req;

import ${domain}.frame.base.BaseRequest;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

/**
 * RoleCreateRequest - 角色新增
 *
 * @author wangbing
 * @version 0.0.1
 * @since 2017-01-01
 */
public class RoleCreateRequest extends BaseRequest {

    /**
     * 角色代码
     */
    @NotBlank(message = "[code]角色代码不能为空")
    @Length(min = 0, max = 50, message = "[code]角色代码长度不合法(0-50)")
    private String code;

    /**
     * 角色名称
     */
    @NotBlank(message = "[name]角色名称不能为空")
    @Length(min = 0, max = 50, message = "[name]角色名称长度不合法(0-50)")
    private String name;

    /**
     * 角色描述
     */
    @Length(min = 0, max = 50, message = "[comment]角色描述长度不合法(0-50)")
    private String comment;

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return this.comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
